package mspbots.cw.business.core.orders;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author AlexBob
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table("cw_orders")
public class Order implements Serializable {

    @Id
    protected Long id;
    private Long tenantCode;
    private Long cwId;
    private Long statusId;
    private String statusName;
    private Long companyId;
    private String companyName;
    private Long billingTermsId;
    private String billingTermsName;
    private Long billToContactId;
    private String billToContactName;
    private Long contactId;
    private String contactName;
    private String description;
    private String updatedBy;
    private String createdBy;
    private LocalDateTime orderDate;
    private LocalDateTime lastUpdatedTime;
    private LocalDateTime syncTime;
    private Double total;
    private LocalDateTime dueDate;
    private Long salesRepId;
    private String salesRepName;
    private String salesRepIdentifier;


}
